import React, { Component } from 'react'
import Footer from '../components/Footer'
export default class My extends Component {
    render() {
        return (
            <div>
                <h2>我的</h2>
                <span>欢迎你 {sessionStorage.getItem('token')}</span> <button onClick={()=>{
                    sessionStorage.removeItem('token');
                    this.props.history.push('/login')
                }}>登出</button>

                <Footer {...this.props}></Footer>
            </div>
        )
    }
}
